import { createApp, onMounted } from "vue";
import ArcoVue from "@arco-design/web-vue";
import App from "./App.vue";
import router from "./router";
// 额外引入图标库
import ArcoVueIcon from "@arco-design/web-vue/es/icon";
import "@arco-design/web-vue/dist/arco.css";
import { createPinia } from "pinia";
import "@/access";

const pinia = createPinia();

createApp(App)
  .use(router)
  .use(ArcoVue)
  .use(pinia)
  .use(ArcoVueIcon)
  .mount("#app");
/**
 * 全局初始化函数，有全局单次调用的代码，都可以写到这里
 */
const doInit = () => {
  console.log("hello 欢迎来到我的项目");
};

onMounted(() => {
  doInit();
});
